import instance from './axios'

// 获取首页新闻数据
export const getBannerList = () =>{
    return instance({
        url:'/bannerList'
    })
}

export const getNewsDetail = (id:any) => {
    return instance.post('/detailList',{
        id
    })
}

//  获取首页newsList数据
export const getNewsList = () =>{
    return instance({
        url:'/newsList'
    })
}

export default {
    getBannerList,getNewsDetail,getNewsList
}